home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1108 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: esdhof.esd.ornl.gov!forrest
  2. From: forrest@esdhof.esd.ornl.gov (Forrest M. Hoffman)
  3. Newsgroups: comp.lang.c,comp.os.msdos.programmer,comp.sys.ibm.pc.hardware.video,comp.sys.ibm.pc.hardware.misc,comp.sys.ibm.pc.misc
  4. Subject: Re: malloc'ing 1.5MB of memory
  5. Date: 11 Jan 1996 14:47:06 GMT
  6. Organization: ORNL Environmental Sciences Division
  7. Message-ID: <4d37ta$4d2@stc06.ctd.ornl.gov>
  8. References: <4culvu$612@stc06.ctd.ornl.gov> <DL0HqJ.7H4@rug.nl>
  9. Reply-To: forrest@esdhof.esd.ornl.gov
  10. NNTP-Posting-Host: esdhof.esd.ornl.gov
  11. To: Herman Dullink <csg669@wing.rug.nl>
  12.  
  13. In article <DL0HqJ.7H4@rug.nl>, Herman Dullink <csg669@wing.rug.nl> writes:
  14. |> forrest@esdhof.esd.ornl.gov (Forrest M. Hoffman) wrote:
  15. |> >Can anyone tell me how to grab a 1.5 MB chunk of PC memory?  I've got a
  16. |> >VideoBlaster card and some C code they gave me.  But I want to use the
  17. |> >full screen (800x600) at 24 bit color.  This means I have to have this
  18. |> >much space to have the routine dump the data into.  The machine I'm
  19. |> >using is a 486 with 16MB of memory.  This must be a DOS limitation?
  20. |> >I'm using MS C 6.0 and calling halloc();
  21. |> It's probably the limitation of MS C's halloc().
  22. |> 
  23. |> >Any suggestions?
  24. |> Try to use the XMS interface (Himem) and disable MS C's heap. With the XMS
  25. |> interface you're able to allocate up to 15MB.
  26. |> 
  27. |> Herman
  28. |> 
  29.  
  30. Herman:
  31.  
  32. Thanks for the suggestion.  This sounds like what I need to do, but how
  33. do I use XMS?  I cannot find any reference to it.  Is it another
  34. library?  Do I get it from Chairman Gates?
  35.  
  36. One other thing:  I still need networking and things to work correctly.
  37. I'm trying to write directly onto an NFS-mounted disk from this program.
  38. I'm using FTP's OnNet TCP/IP stack.
  39.  
  40. Also, how do I disable MS C's heap after finding out about XMS?
  41.  
  42. Thanks!!!
  43.  
  44. Forrest
  45. -----------------------------------------------------------------------------
  46. Forrest Hoffman                             forrest@esd.ornl.gov
  47. Environmental Sciences Division             http://www.esd.ornl.gov/~forrest
  48. Oak Ridge National Laboratory               (423) 576-7680
  49. MS 6036, Building 1505, Room 216            (423) 576-8543 fax
  50. P.O. Box 2008                               36  1' 35" N   84  11' 55" W
  51. Oak Ridge TN 37831-6036
  52. -----------------------------------------------------------------------------
  53.